﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Common.Net.Utilities
{
    public static class StringHelper
    {
        public static string Middle(this string value, int cutFromLeft, int cutFromRight)
        {
            return value.Substring(cutFromLeft, value.Length - cutFromRight - cutFromLeft);
        }

        public static bool IsNullOrEmpty(this string value)
        {
            return string.IsNullOrEmpty(value);
        }

        public static string Format(this string value, params object[] args)
        {
            return string.Format(value, args);
        }
    }
}
